<!-- 系统自动生成 Date:2021-06-11 10:29 -->
<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="修改【请填写功能名称】" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-classify-edit"  class="form-horizontal">
    <@f.hidden name="pkId" value="${classify.pkId?default('')}"/>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <span style="color: red; ">* </span>
            <@ctx.i18n text = "分类父级ID"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="parentId" value="${classify.parentId?default('')}"   required=true />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <span style="color: red; ">* </span>
            <@ctx.i18n text = "分类封面地址"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="coverImage" value="${classify.coverImage?default('')}"   required=true />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <span style="color: red; ">* </span>
            <@ctx.i18n text = "分类名称"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="name" value="${classify.name?default('')}"   required=true />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <span style="color: red; ">* </span>
            <@ctx.i18n text = "分类排序"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="sort" value="${classify.sort?default('')}"   required=true />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <span style="color: red; ">* </span>
            <@ctx.i18n text = "分类层级"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="level" value="${classify.level?default('')}"   required=true />
        </div>
    </div>
</@f.form>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "/classify";
    /**表单验证*/
    <@compress single_line=true>
    $("#form-classify-edit").validate({
        focusCleanup: true
    });
    </@compress>

    /**
     * 点击确定回调事件
     */
    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/edit", $('#form-classify-edit').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>
